import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import VueLazyLoad from 'vue-lazyload'
import {
    Swiper,
    Pagination,
    Autoplay,
    Navigation,
    EffectFade,
} from "swiper/core";
import 'swiper/swiper-bundle.css'
// 重新调整代码规范
import './assets/styles/reset.css'
// 移动端像素缩放问题
import './assets/styles/border.css'
//引入图标
import 'styles/iconfont/iconfont.css'
import VueLazyload from 'vue-lazyload'
Swiper.use([Pagination, Autoplay, Navigation, EffectFade])
Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper)
Vue.use(VueLazyload, {
    preLoad: 1.3,
    error: require('./assets/loading.png'),
    loading: require('./assets/loading.png'),
    attempt: 1
})
new Vue({
    router,
    store,
    render: h => h(App),
    data: {
        bus: new Vue()
    }
}).$mount('#app')